package com.openstack4j.qx.rest;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;

import com.openstack4j.qx.pojo.BaseResp;
import com.openstack4j.qx.pojo.VMInfoSet;
import com.openstack4j.qx.pojo.VMResp;

/**
 * 物理机rest接口服务
 * @author Lynne
 *
 */
public class SRVRest {
	/**
	 * 申请物理机
	 * 
	 * @param request
	 * @return
	 */
	@GET
	@Path("/ApplySRVReq")
	@Produces(MediaType.APPLICATION_JSON)
	public BaseResp ApplySRVReq(@Context HttpServletRequest request) {

		VMResp resp = new VMResp();

		try {
			// 业务代码编写


		} catch (Exception e) {
			e.printStackTrace();
			// 异常信息
			resp.setFaultstring(e.getMessage());
		}
		return resp;
	}
}
